package com.ftf.tp.blog.infrastructure.mapper.pos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 标签表
 *
 * @author tanghao
 * @date 2022/6/24
 */
@ApiModel(value = "标签表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tag")
public class TagPO{
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 标签名称
     */
    @TableField(value = "tag_name")
    @ApiModelProperty(value = "标签名称")
    private String tagName;

    /**
     * 标签状态
     */
    @TableField(value = "tag_status")
    @ApiModelProperty(value = "标签状态")
    private Integer tagStatus;

    /**
     * 所属大类标签id (0 为大类标签)
     */
    @TableField(value = "tag_parent_id")
    @ApiModelProperty(value = "所属大类标签id (0 为大类标签)")
    private Long tagParentId;

    /**
     * 标签类型 (0:系统标签,1:用户自定义标签)
     */
    @TableField(value = "tag_type")
    @ApiModelProperty(value = "标签类型 (0:系统标签,1:用户自定义标签)")
    private Integer tagType;

    /**
     * 标签订阅数
     */
    @TableField(value = "follow_number")
    @ApiModelProperty(value = "标签订阅数")
    private Integer followNumber;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * 创建人id(0 为系统创建)
     */
    @TableField(value = "created_by")
    @ApiModelProperty(value = "创建人id(0 为系统创建)")
    private Long createdBy;
}